package com.xgq.drink.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author xgq
 * @since 2025-03-25
 */
@Getter
@Setter
@TableName("product_resource")
public class ProductResource implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 商品ID
     */
    private Long productId;

    /**
     * 资源路径
     */
    private String url;

    /**
     * 资源类型(1.图片，2.视频)
     */
    private Integer type;

    private String name;
}
